package com.atguigu08._interface.exer1;

/**
 * @author NoobMaster69  * @date 2024/6/1 0001 星期六 14:54
 */
public class EatableTest {
    public static void main(String[] args) {
        Eatable[] arr = new Eatable[3];
        arr[0] = new Chinese();
        arr[1] = new American();
        arr[2] = new Indian();


        for (int i = 0; i < arr.length; i++) {
            arr[i].eat();
        }
    }
}
